﻿using System;
using System.Collections.Generic;

namespace Disco.Ontology
{
    public class Group : EntityBase
    {
        public string Alias { get; set; }

        public long DescriptionId { get; set; }
        public virtual Descriptor Description { get; set; }

        public virtual ICollection<GroupMembership> Memberships { get; set; }

        public long? ParentId { get; set; }
        public virtual Group Parent { get; set; }
        public virtual ICollection<Group> Partitions { get; set; }

        public Group()
        {
            Memberships = new List<GroupMembership>();
            Partitions = new List<Group>();
        }
    }
}
